home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1999 November / SOTMC_Nov1999-Ultimate.iso / mac / REALbasic ƒ / Examples / Techniques / Examples by Matt Neuburg / spriteTest / readMe < prev    next >
Encoding:
Text File  |  1999-03-31  |  786 b   |  15 lines  |  [TEXT/R*ch]

  1. SpriteTest (PacManOnMars)
  2.  
  3. by Matt Neuburg
  4. matt@tidbits.com
  5. http://www.tidbits.com/matt/
  6.  
  7. A simple spriteSurface game animation. Use the arrow-keys to aim PacMan so he eats the ghosts. Many thanks to Alex Metcalf for letting me use the animated drawings from his Maniac game.
  8.  
  9. The example shows two abstract classes, SmartSurface (a spritesurface subclass) and SmartSprite (a sprite wrapper) which together make both surface and sprites far more object-oriented and self-contained. Instead of the spritesurface having to drive everything, the redraw and collision events are shunted off to the sprites themselves so they can act as befits their nature.
  10.  
  11. Also takes advantage of a few new RB 2.0 features like constructors and constants.
  12.  
  13. This is from my upcoming book on REALbasic. m.
  14.  
  15.